
add_definitions(
    -DUSE_WINE_TODOS
    -DWINETEST_USE_DBGSTR_LONGLONG)

list(APPEND SOURCE
    domdoc.c
    httpreq.c
    saxreader.c
    schema.c
    xmldoc.c
    xmlparser.c
    xmlview.c)

list(APPEND PCH_SKIP_SOURCE
    guid.c
    testlist.c)

add_executable(msxml3_winetest
    ${SOURCE}
    ${PCH_SKIP_SOURCE}
    rsrc.rc)

add_idl_headers(xmlparser_idlheader_test xmlparser.idl)
add_dependencies(msxml3_winetest xmlparser_idlheader_test)
set_module_type(msxml3_winetest win32cui)
add_importlibs(msxml3_winetest user32 ole32 oleaut32 msvcrt kernel32)

if(MSVC)
    add_importlibs(msxml3_winetest ntdll)
endif()

add_pch(msxml3_winetest precomp.h "${PCH_SKIP_SOURCE}")
add_rostests_file(TARGET msxml3_winetest)
